package com.ultrasoft.farmasoft.service;

import java.util.List;

import com.ultrasoft.farmasoft.domain.Locality;
import com.ultrasoft.farmasoft.domain.Provider;
import com.ultrasoft.farmasoft.domain.Rolprovider;
import com.ultrasoft.farmasoft.domain.Userprovider;

public interface ProviderService {
	
	public List<Provider> getlistProviders();
	public List<Provider> getlistProvidersDischarged();
	public List<Provider> getListProvider(boolean active);
    public List<Provider> getListProvider(Integer pharmacyId,boolean active);
	public Provider searchProviderByProviderId(Integer providerId);
	public void addProvider(Provider provider);
	public void updateProvider(Provider provider);

	
	public List<Rolprovider> getListRolProvider();
    public Rolprovider searchRolProviderByRolProviderId(Integer rolProviderId); 
    
    
    public List<Userprovider> getListUserProvider();
	public List<Userprovider> getListUserProvider(boolean active);
	public List<Userprovider> getListUserProviderByRolProviderIdByActive(Integer rolProviderId,boolean active);
	public List<Userprovider> getListUserProviderByRolProviderIdByProviderIdByActive(Integer rolProviderId,Integer providerId,boolean active);
	public List<Userprovider> getListUserProviderByproviderId(Integer providerId);
	public List<Userprovider> getListUserProviderByuserProviderId(Integer userProviderId);
	public List<Userprovider> getListUserProviderByproviderId(Integer providerId,boolean active);
	public List<Userprovider> getListUserProviderByuserProviderId(Integer userProviderId,boolean active);
	public Userprovider searchUserProviderByUserProviderIdByProviderId(Integer userProviderId,Integer providerId);				
    public void updateUserProvider(Userprovider userProvider);
	public void addUserProvider(Userprovider userProvider);
	public void removeUserProvider(Userprovider userProvider);
	public Integer searchUserProviderIdByuserProviderIdMax();

	//public List<Product> lista();

}
